package cn.wolfcode.shop.api.service;

import cn.wolfcode.shop.api.domain.Catalog;

import java.util.List;

public interface ICatalogService {

    List<Catalog> selecRootTree();

    List<Catalog> selectSonTree(Long parentId);

    Catalog get(Long id);

    void update(Catalog catalog);

    List<?> selectAll();

    List<Catalog> listCatalogs();

    void save(Catalog catalog);

    void delete(Long id);

    List<Catalog> list();
}
